package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ProRepairEngineersMapper;
import com.ruoyi.domain.ProRepairEngineers;
import com.ruoyi.service.IProRepairEngineersService;
import com.ruoyi.common.core.text.Convert;

/**
 * 维保维修工程水/电派工单项目Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-08
 */
@Service
public class ProRepairEngineersServiceImpl implements IProRepairEngineersService 
{
    @Autowired
    private ProRepairEngineersMapper proRepairEngineersMapper;

    /**
     * 查询维保维修工程水/电派工单项目
     * 
     * @param mPid 维保维修工程水/电派工单项目ID
     * @return 维保维修工程水/电派工单项目
     */
    @Override
    public ProRepairEngineers selectProRepairEngineersById(Long mPid)
    {
        return proRepairEngineersMapper.selectProRepairEngineersById(mPid);
    }

    /**
     * 查询维保维修工程水/电派工单项目列表
     * 
     * @param proRepairEngineers 维保维修工程水/电派工单项目
     * @return 维保维修工程水/电派工单项目
     */
    @Override
    public List<ProRepairEngineers> selectProRepairEngineersList(ProRepairEngineers proRepairEngineers)
    {
        return proRepairEngineersMapper.selectProRepairEngineersList(proRepairEngineers);
    }

    /**
     * 新增维保维修工程水/电派工单项目
     * 
     * @param proRepairEngineers 维保维修工程水/电派工单项目
     * @return 结果
     */
    @Override
    public int insertProRepairEngineers(ProRepairEngineers proRepairEngineers)
    {
        return proRepairEngineersMapper.insertProRepairEngineers(proRepairEngineers);
    }

    /**
     * 修改维保维修工程水/电派工单项目
     * 
     * @param proRepairEngineers 维保维修工程水/电派工单项目
     * @return 结果
     */
    @Override
    public int updateProRepairEngineers(ProRepairEngineers proRepairEngineers)
    {
        return proRepairEngineersMapper.updateProRepairEngineers(proRepairEngineers);
    }

    /**
     * 删除维保维修工程水/电派工单项目对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteProRepairEngineersByIds(String ids)
    {
        return proRepairEngineersMapper.deleteProRepairEngineersByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除维保维修工程水/电派工单项目信息
     * 
     * @param mPid 维保维修工程水/电派工单项目ID
     * @return 结果
     */
    @Override
    public int deleteProRepairEngineersById(Long mPid)
    {
        return proRepairEngineersMapper.deleteProRepairEngineersById(mPid);
    }

    /**
     * 按id查询维修工程
     *
     * @param mtId 维修工程
     * @return 维修工程集合
     */
    @Override
    public List<ProRepairEngineers> selectProRepairEngineersListById(Long mtId) {
        return proRepairEngineersMapper.selectProRepairEngineersListById(mtId);
    }
}
